/**
 * File    : RoleManager.java
 * Created : 2008-10-10
 * By      : LuHuiguo
 */
package com.luhuiguo.sso.service;

import java.util.List;

import com.luhuiguo.sso.entity.Role;

/**
 * @author LuHuiguo
 * @version $Id: RoleManager.java 16 2008-10-17 13:13:27Z LuHuiguo $
 * 
 */
public interface RoleManager {

	Role getRole(Long id);

	Role getRole(String name);

	boolean existsRole(Long id);

	boolean existsRole(String name);

	List<Role> getAllRole(int... rowStartIdxAndCount);

	void createRole(Role role);

	void updateRole(Role role);

	void deleteRole(Long id);

	void deleteRole(String name);

	void deleteRole(Role role);
	
	Role getUserRole();
	
	Role getAdminRole();
	
	
}
